package com.lzy.wzy.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BingDingTemplate {

    private String name;

    private Integer parentId;

    private Integer childId;

    private Integer orderId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BingDingTemplate that = (BingDingTemplate) o;
        return name.equals(that.name) && childId.equals(that.childId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, childId);
    }
}
